/**
 * 
 */
$(function($){
	
	var device_grid="#device-grid";
	var device_pager="#device-pager";
	var parent_volumn=$(device_grid).closest('[class*="col-"]');
	
	//resize the page size
	$(window).on('resize.jgGrid',function(){
		$(device_grid).jqGrid('setGridWidth',parent_volumn.width());
	})
	$(document).on('settings.ace.jqGrid',function(ev,event_name,collapsed){
		if(event_name==='sidebar_collapsed' ||event_name==="main_container_fixed"){
			setTimeout(function(){
				$(device_grid).jqGrid('setGridWidth',parent_volumn.width());
			},0);
		}
	});
	//create a jqGrid 
	$(device_grid).jqGrid({
		
	})
	
})